from rest_framework import serializers


class GoodsSerializer(serializers.Serializer):
    category = serializers.StringRelatedField(read_only=True)
    count = serializers.IntegerField()
    # from apps.goods.models import GoodsVisitCount
    # class GoodsModelSerializer(serializers.ModelSerializer):
    #     category=serializers.StringRelatedField(read_only=True)
    #     class Meta:
    #         model=GoodsVisitCount
    #         filter=['category', 'count']
